package pe.edu.upc.test;

import junit.framework.Assert;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import pe.edu.upc.jawx.HelloWorld;

@ContextConfiguration("/applicationContext-test.xml")
@RunWith(SpringJUnit4ClassRunner.class)
public class helloworldintegrationtest {

	@Autowired
	private HelloWorld hello;
	
	@Test
	public void testSaludo() {
		String response=hello.saludo();
		Assert.assertEquals("Hola Mundo!!!!", response);
	}

}
